package com.ssm.dao.mybatis.employee.service;

import java.util.List;

import com.ssm.dao.mybatis.employee.IEmployeeDAO;
import com.ssm.dto.mybatis.Employee;

public class EmployeeMybatisServiceImpl implements IEmployeeMybatisService {
	private IEmployeeDAO employeeDAO;

	public List<Employee> findEmployee(Employee employee) {
		return employeeDAO.query(employee);
	}

	@Override
	public int delAll() {
		return employeeDAO.deleteAll();
	}

	@Override
	public int saveEmployeeList(List<Employee> employeelist) {
		return employeeDAO.insertEmployeeList(employeelist);
	}

	public void saveEmployee(Employee employee) {
		employeeDAO.insertEmployee(employee);
	}

	public IEmployeeDAO getEmployeeDAO() {
		return employeeDAO;
	}

	public void setEmployeeDAO(IEmployeeDAO employeeDAO) {
		this.employeeDAO = employeeDAO;
	}

}
